home *** CD-ROM | disk | FTP | other *** search
- Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
- From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
- Newsgroups: comp.lang.c
- Subject: Re: Segmentation fault at return statement. Can't figure out ....
- Date: 24 Jan 1996 20:11:14 GMT
- Organization: SEFLIN Free-Net - Broward
- Message-ID: <4e63p2$ljg@bcfreenet.seflin.lib.fl.us>
- References: <4dm2n1$egk@murphy.servtech.com> <4dop08$kdi@bcfreenet.seflin.lib.fl.us> <9601201829.AA02117@dxmint.cern.ch>
- NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
- X-Newsreader: TIN [version 1.2 PL2]
-
- Dan Pop (danpop@mail.cern.ch) wrote:
- : z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
-
- : >Avijit Dasgupta (avi@servtech.com) wrote:
- : >
- : >: test.c:
- : >
- : >: test()
- : >: {
- : >
- : >: .
- : >: ..
- : >: .
- : >: 83: return(999); <----- Segmentation fault at this stmt.
- : >: }
- : >
- : >--
- : >********begin r.s. response*********
- : ^^^^^^^^^^^^^^^^^^^
- : Very important hint. Without it I would have never figured out where the
- : "r.s. response" begins.
-
- : > 'test'
- : > is likely to be
- : > a command of
- : > the
- : > operating system
-
- : So what? There's no possible conflict/interaction between a function
- : name in a C program and the name of an OS command.
-
- : > 1) look it up.
- : > 2) rename yours.
- : ^^^^^^^^^^^^^
- : Why???
-
- : >********end r.s. response***********
- : ^^^^^^^^^^^^^^^^^
- : See my first comment, above.
-
- : Dan
- : --
- : Dan Pop
- : CERN, CN Division
- : Email: danpop@mail.cern.ch
- : Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-
- --
- *********begin r.s. response************
-
- dan,
- is it not possible
- that the link order of
- test.c etc.
- resulted in an executable named
- test.exe,
- test.com
- or such?
-
- *********end r.s. response**************
- Ralph Silverman
- z007400b@bcfreenet.seflin.lib.fl.us
-
-